package xyz.xtt.admin.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * @author Jim kwok
 * @since 2025/2/26
 */
@Builder
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tbl_activity")
public class TblActivity implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;
    /* 主键 */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;
    /* 关联资产表主键 */
    private Long assetId;
    /* goodsId*/
    private Long goodsId;
    /* 资产名称 */
    private String assetName;
    /* 资产拥有人*/
    private Long ownerId;
    /* 活动名称 */
    private String name;
    /* 活动简介 */
    private String brief;
    /* 活动类型 */
    private Integer type;
    /* 活动状态 */
    private Integer status;
    /* 单个用户的获取数量下限 */
    private Integer min;
    /* 单个用户的获取数量上限 */
    private Integer max;
    /* 活动开始时间 */
    private Date timeStart;
    /* 活动结束时间 */
    private Date timeEnd;

}
